package light.head.model;

import java.io.Serializable;
/**
 * 机构类型关系联合主键
 * @author 杨光和
 * @Time
 */
public class OrganTypeRelationPK implements Serializable {

	private static final long serialVersionUID = -2197939781783277971L;
	
	private Integer scode;
	private Integer gfpCode;
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
            return true;
        }
        if (null == obj) {
            return false;
        }
        if (!(obj instanceof OrganTypeRelationPK)) {
            return false;
        }

        final OrganTypeRelationPK pko = (OrganTypeRelationPK) obj;
        if (!scode.equals(pko.getScode())) {
            return false;
        }
        if (null == gfpCode || gfpCode.intValue() != pko.getGfpCode()) {
            return false;
        }
        return true;
	}
	@Override
	public int hashCode() {
		int result;
        result = gfpCode.hashCode();
        result = 29 * result + scode.hashCode();
        return result;
	}
	
	public Integer getScode() {
		return scode;
	}
	public void setScode(Integer scode) {
		this.scode = scode;
	}
	public Integer getGfpCode() {
		return gfpCode;
	}
	public void setGfpCode(Integer gfpCode) {
		this.gfpCode = gfpCode;
	}
	

}
